package com.meilai.project.controller.web.market.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.meilai.project.dto.base.PageReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * @author xchen
 * @since 2022-01-23
 */
@Data
@ApiModel
public class BillMarketListDTO extends PageReq {

    @ApiModelProperty(value = "1:商务，2:设计")
    private Integer type;

    @ApiModelProperty(value = "分公司ID")
    private Long dept_id;

    @ApiModelProperty(value = "客户ID（项目ID）")
    private Long customer_id;

    @ApiModelProperty(value = "合同编号")
    private String contract_num;

    @ApiModelProperty("当前状态")
    private Integer flow_status;

    @ApiModelProperty(value = "最晚上刊日期(开始)")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate latest_up_date_start;

    @ApiModelProperty(value = "最晚上刊日期(结束)")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate latest_up_date_end;

    @ApiModelProperty(value = "最晚下刊日期(开始)")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate latest_down_date_start;

    @ApiModelProperty(value = "最晚下刊日期(结束)")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate latest_down_date_end;

    @ApiModelProperty(value = "不用传（自动获取）")
    private Long currentUserId;
}
